package com.xunua.NaoZiKongBai.SplashAndSchemeActivity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import com.xunua.NaoZiKongBai.MyApplication;
import com.xunua.NaoZiKongBai.R;


/**
 * 处理通过Scheme启动app的uri
 *
 *
 * 跳转此页的效果是唤起APP
 *
 */
public class SchemeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_scheme);
        MyApplication application = (MyApplication) getApplication();


        if (application.activityList.size()<=1) {
            startActivity(new Intent(this, SplashActivity.class));
        }
        finish();
    }
}
